<template>
  <div>
    <table>
            <tr>
                <th>序号</th>
                <th>职务名称</th>
                <th>职务编码</th>
                <th>职务排序</th>
                <th colspan="3">操作</th>
            </tr>

            <tr v-for="(data,index) in datas" :key="index">
                <td>{{data.id}}</td>
                <td>{{data.name}}</td>
                <td>{{data.user}}</td>
                <td>{{data.pid}}</td>
                <td colspan="3"><button>用户</button></td>
                <td><button>编辑</button></td>
                <td><button>删除</button></td>
            </tr>
        </table>
  </div>
</template>

<script>
import axios from "../../http/axios"
export default {
    name:"zhiwu",
    data(){
        return{
            datas:{}
        }
    },
    methods:{
    getdept(){
      axios("/titlelist","get").then(res=>{
        this.datas= res.list
      })
    }
    },
    mounted(){
        this.getdept()
    }

}
</script>

<style>

</style>